package v1

import (
	"github.com/gin-gonic/gin"
	"hytx_media/pkg/app"
	"hytx_media/models"
	"hytx_media/service/media_user_service"
)

func Profile(c *gin.Context){
	appG := app.Gin{c}
	userId := c.MustGet("user").(*models.MediaUser).ID

	userInfo := media_user_service.UserInfo(userId)

	appG.Success(userInfo)
}
